<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<table width="800" border="1" align="center"
	bordercolor="#E8E7E6" bgcolor="#FFFFFF">
	<tr align="center" valign="middle" >
		<c:if test="${fn:length(subDisInfos) != 0}">
			<th colspan="4" height="25px" bgcolor="#BECAE3"> ${cityName} 下属区县立项发布总数 (${subProSum} 条)</th>
		</c:if>
		<c:if test="${fn:length(subDisInfos) == 0}">
			<th colspan="4" height="25px" bgcolor="#BECAE3"> 暂无 ${cityName} 下属地区信息</th>
		</c:if>
	</tr>
		<c:forEach items="${subDisInfos}" var="disInfo" varStatus="status">
			<c:if test="${(status.count%4)==1}">
				<tr align="center" valign="middle"  >
			</c:if>
				<td width="25%" style="padding:3px">
					<a href="javascript:showDisDep(${disInfo.depId})">${disInfo.departmentName}</a><br/><a href="javascript:newWindow('<%=request.getContextPath()%>/monitor/projectList?did=${disInfo.depId}');"><span>(${disInfo.pid} 条)</span></a>
				</td>
				<c:if test="${status.last}">
					<c:if test="${(status.count%4)!=0}">
						<c:forEach begin="1" end="${4-(status.count%4)}" var="i">
							<td>&nbsp;</td>
						</c:forEach> 
					</c:if>
				</c:if>
			<c:if test="${(status.count%4)==0}">
				</tr>
			</c:if>
		</c:forEach>
</table>
<br/>
<div id="showDepartment">
	<table width="800" border="1" align="center"
		bordercolor="#E8E7E6" bgcolor="#FFFFFF">
		<tr align="center" valign="middle" >
			<c:if test="${fn:length(subDepInfos) != 0}">
				<th colspan="4" height="25px" bgcolor="#BECAE3"> ${cityName} 市级部门立项发布总数 (${cityProSum} 条)</th>
			</c:if>
			<c:if test="${fn:length(subDepInfos) == 0}">
				<th colspan="4" height="25px" bgcolor="#BECAE3"> 暂无 ${cityName} 市级部门信息</th>
			</c:if>
		</tr>
			<c:forEach items="${subDepInfos}" var="depInfo" varStatus="status">
				<c:if test="${(status.count%4)==1}">
					<tr align="center" valign="middle"  >
				</c:if>
					<td width="25%" style="padding:3px">
						${depInfo.departmentName}<br/><a href="javascript:newWindow('<%=request.getContextPath()%>/monitor/projectList?did=${depInfo.depId}');"><span>(${depInfo.pid} 条)</span></a>
					</td>
					<c:if test="${status.last}">
						<c:if test="${(status.count%4)!=0}">
							<c:forEach begin="1" end="${4-(status.count%4)}" var="i">
								<td>&nbsp;</td>
							</c:forEach> 
						</c:if>
					</c:if>
				<c:if test="${(status.count%4)==0}">
					</tr>
				</c:if>
			</c:forEach>
	</table>
</div>
